home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
RexxScripts.lha
/
Rexx
/
TurboText
/
CRevision.ttx
< prev
next >
Wrap
Text File
|
1993-06-14
|
1KB
|
60 lines
/*
Revises a `C' source code
The default Port of KCommodity is assumed to be KComm.1.
This script was written for CygnusED II Pro, but I think it can
be easily ported to other editors having an ARexx-Port.
Written by : Kai Iske
Brucknerstrasse 18
6450 Hanau 1
GERMANY
Tel.: +49-(0)6181-850181
THIS SCRIPT IS PUBLIC DOMAIN
Modified for use with TurboText by Joachim Worringen 10.01.93
FIDO: 2:242/7.3
E-Mail: Joachim_Worringen@mowgli.fido.de
The cursorpositioning looks a little bit complicated, but the
"Bookmark"-funtion couldn`t be used in this case since TurboText
forgets all the old bookmarks if you load a new file (exactly what
happens here) so I had to choose this method.
*/
OPTIONS RESULTS
GetFileInfo
parse var RESULT lines_old ' ' modified ' ' name
if name = "" then
do
SetStatusBar "No file name -- aborting"
exit 0
end
IF modified = YES THEN SaveFile
GetCursorPos
parse var RESULT line . .
GetFilePath
RevName = RESULT
ADDRESS 'KComm.1' REVISE RevName C
RevDone = RESULT
Screen2Front
IF RevDone = 1 THEN
DO
OpenFile RevName
GetFileInfo
parse var RESULT lines_new . .
Move line + lines_new - lines_old
CenterView
END
ELSE
SetStatusBar "Error on revising !"
exit